package com.shigu;

import java.util.List;

/**
 * @author 郭尔
 * @description 列表传输dto
 * @date 2019-06-04 10:41
 */
public class ListDto<T> {
    private Boolean hasNext;
    private int total;
    private List<T> data;

    public ListDto() {
    }

    public ListDto(Boolean hasNext, int total, List<T> data) {
        this.hasNext = hasNext;
        this.total = total;
        this.data = data;
    }

    public Boolean getHasNext() {
        return hasNext;
    }

    public void setHasNext(Boolean hasNext) {
        this.hasNext = hasNext;
    }

    public List<T> getData() {
        return data;
    }

    public void setData(List<T> data) {
        this.data = data;
    }

    public int getTotal() {
        return total;
    }

    public void setTotal(int total) {
        this.total = total;
    }
}
